package com.easygem.front.service;

import com.easygem.common.model.front.ResourceInfo;
import com.easygem.common.vo.front.ResourceInfoVO;
import com.easygem.common.vo.system.PageVO;
import com.easygem.front.mapper.CustomerMapper;
import com.easygem.front.service.base.IBaseService;

import java.util.List;

/**
 * @author 肖智
 * @version 1.0
 * @Description 客户业务逻辑层
 * @date 2024/12/24
 */
public interface CustomerService extends IBaseService<CustomerMapper, ResourceInfo, Integer> {
    //多条件查询客户
    PageVO<ResourceInfo> findCustomerList(Integer pageNum, Integer pageSize, ResourceInfoVO resourceInfoVO);
    //根据id查询客户
    ResourceInfo getCustomerById(Long resourceId);
    //根据id修改客户
    Integer editCustomerById(ResourceInfo resourceInfo);
    //添加客户标签
    Integer addCustomerLabel(Long resourceId, Integer labelId);
    //根据id修改客户
    Integer deleteCustomerById(Long[] resourceIds,String deleteTime);
    //添加客户
    Integer addCustomer(ResourceInfo resourceInfo);
    //客户转移
    Integer clientShift(Long[] resourceIds, Long [] userIds);
    //批量导出
    List<ResourceInfo> findAllByIds(List<Long> ids);
    //查询电话是否存在
    Integer isExistPhone(String phoneA,String phoneB,String accountName);
    //客户导入
    Integer importClient(List<ResourceInfo> resourceInfoList,String accountName);
    //根据账号查询adminId
    Long getAdminIdByAccountName(String accountName);
}
